package com.xbongbong.paas.pojo.dto;

import com.xbongbong.paas.pojo.FormTitlePoJo;
import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.paas.toolbox.wrap.QueryIgnore;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author: wufeng
 * @date: 2018/10/10 16:24
 * @desrcption: 表单标题设置
 */
@Getter
@Setter
@ToString
public class FormTitleUpdateDTO extends BaseDTO {


    private static final long serialVersionUID = -7976318526878134407L;
    /**
     * 应用id
     */
    @NotNull(message = "{dto.msg.formTitleUpdate.appId.NotNull}")
    private Long appId;
    /**
     * 菜单id
     */
    @NotNull(message = "{dto.msg.formTitleUpdate.menuId.NotNull}")
    private Long menuId;

    /**
     * 标题类型
     */
    @NotNull(message = "{dto.msg.formTitleUpdate.titleType.NotNull}")
    @Getter(onMethod_ = {@QueryIgnore})
    private Integer titleType;
    /**
     * 表单标题
     */
    @Valid
    private List<FormTitlePoJo> formTitleList;
}
